Optimal. Leaf size=59 \[ -\frac{\sqrt{c} d \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{a^{3/2}}-\frac{e \log \left (a+c x^2\right )}{2 a}-\frac{d}{a x}+\frac{e \log (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0467175, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {801, 635, 205, 260} \[ -\frac{\sqrt{c} d \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{a^{3/2}}-\frac{e \log \left (a+c x^2\right )}{2 a}-\frac{d}{a x}+\frac{e \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 801
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{d+e x}{x^2 \left (a+c x^2\right )} \, dx &=\int \left (\frac{d}{a x^2}+\frac{e}{a x}-\frac{c (d+e x)}{a \left (a+c x^2\right )}\right ) \, dx\\ &=-\frac{d}{a x}+\frac{e \log (x)}{a}-\frac{c \int \frac{d+e x}{a+c x^2} \, dx}{a}\\ &=-\frac{d}{a x}+\frac{e \log (x)}{a}-\frac{(c d) \int \frac{1}{a+c x^2} \, dx}{a}-\frac{(c e) \int \frac{x}{a+c x^2} \, dx}{a}\\ &=-\frac{d}{a x}-\frac{\sqrt{c} d \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{a^{3/2}}+\frac{e \log (x)}{a}-\frac{e \log \left (a+c x^2\right )}{2 a}\\ \end{align*}
Mathematica [A] time = 0.0327074, size = 59, normalized size = 1. \[ -\frac{\sqrt{c} d \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{a^{3/2}}-\frac{e \log \left (a+c x^2\right )}{2 a}-\frac{d}{a x}+\frac{e \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 53, normalized size = 0.9 \begin{align*} -{\frac{d}{ax}}+{\frac{e\ln \left ( x \right ) }{a}}-{\frac{e\ln \left ( c{x}^{2}+a \right ) }{2\,a}}-{\frac{cd}{a}\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6425, size = 289, normalized size = 4.9 \begin{align*} \left [\frac{d x \sqrt{-\frac{c}{a}} \log \left (\frac{c x^{2} - 2 \, a x \sqrt{-\frac{c}{a}} - a}{c x^{2} + a}\right ) - e x \log \left (c x^{2} + a\right ) + 2 \, e x \log \left (x\right ) - 2 \, d}{2 \, a x}, -\frac{2 \, d x \sqrt{\frac{c}{a}} \arctan \left (x \sqrt{\frac{c}{a}}\right ) + e x \log \left (c x^{2} + a\right ) - 2 \, e x \log \left (x\right ) + 2 \, d}{2 \, a x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 1.51491, size = 326, normalized size = 5.53 \begin{align*} \left (- \frac{e}{2 a} - \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) \log{\left (x + \frac{12 a^{4} e \left (- \frac{e}{2 a} - \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right )^{2} - 6 a^{3} e^{2} \left (- \frac{e}{2 a} - \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) - 2 a^{2} c d^{2} \left (- \frac{e}{2 a} - \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) - 6 a^{2} e^{3} + 2 a c d^{2} e}{9 a c d e^{2} + c^{2} d^{3}} \right )} + \left (- \frac{e}{2 a} + \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) \log{\left (x + \frac{12 a^{4} e \left (- \frac{e}{2 a} + \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right )^{2} - 6 a^{3} e^{2} \left (- \frac{e}{2 a} + \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) - 2 a^{2} c d^{2} \left (- \frac{e}{2 a} + \frac{d \sqrt{- a^{3} c}}{2 a^{3}}\right ) - 6 a^{2} e^{3} + 2 a c d^{2} e}{9 a c d e^{2} + c^{2} d^{3}} \right )} - \frac{d}{a x} + \frac{e \log{\left (x \right )}}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16152, size = 74, normalized size = 1.25 \begin{align*} -\frac{c d \arctan \left (\frac{c x}{\sqrt{a c}}\right )}{\sqrt{a c} a} - \frac{e \log \left (c x^{2} + a\right )}{2 \, a} + \frac{e \log \left ({\left | x \right |}\right )}{a} - \frac{d}{a x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]